StrictlyPositiveInt

@Serializable(with = StrictlyPositiveIntSerializer::class)
@SinceKotoolsTypes(version = "1.1")
value class StrictlyPositiveInt : NonZeroInt, PositiveInt

Representation of positive integers excluding zero.

Types

Link copied to clipboard
object Companion

Contains declarations for holding or building a StrictlyPositiveInt.

Functions

Link copied to clipboard
open override fun toInt(): Int

Returns this integer as an Int.

Link copied to clipboard
open override fun toString(): String

Returns the string representation of this integer.